<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript" src="jquery.min.js">

		</script>
		<style type="text/css">
			div {
				width: 100px;
				height: 100px;
				background-color: red;
			}
		</style>
	</head>
	<body>
		<div id="">

		</div>
		<script type="text/javascript">
			$(function() {
				//获取属性值
				console.log($('div').css('width'));

				//设置属性值
				// $('div').css('width', '500px');
				// $('div').css('width', 500);

				//设置多个属性值
				$('div').css({
					width: 300,
					height: 400,
					backgroundColor: 'green'
				});

			})
		</script>
	</body>
</html>
